package H02.h2.util;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class text {
    public static void main(String[] args) {
        String url = "jdbc:sqlserver://localhost:1433;databaseName=master;encrypt=true;trustServerCertificate=true;";
        String user = "sa";
        String password = "123456";

        try {
            Connection connection = DriverManager.getConnection(url, user, password);
            System.out.println("Connection successful!");
            connection.close();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
